package com.fr.design.plugin.mdnl;

import com.fr.design.data.datapane.connect.DatabaseConnectionPane;
import com.fr.data.impl.multidimensional.finebi.FineBiCubeDatabaseConnection;

import javax.swing.*;

/**
* @author : richie
* @since : 8.0
*/
public class FineBIConnectionPane extends DatabaseConnectionPane<FineBiCubeDatabaseConnection> {
    private static FineBIDefPane FineBIDefPane = new FineBIDefPane();

    @Override
    protected JPanel mainPanel() {
        return FineBIDefPane;
    }

    @Override
    protected boolean isFineBI() {
        return true;
    }


    @Override
    protected void populateSubDatabaseConnectionBean(FineBiCubeDatabaseConnection ob) {
        FineBIDefPane.populate(ob);
    }

    @Override
    protected FineBiCubeDatabaseConnection updateSubDatabaseConnectionBean() {
        return FineBIDefPane.update();
    }

    @Override
    protected String title4PopupWindow() {
        return "FineBI";
    }
}
